package tutorial;

import net.minecraft.block.material.MapColor;
import net.minecraft.block.material.Material;

public class TutorialMaterial extends Material
{
	static public void Init()
	{
		newLeaves = (new TutorialMaterial(MapColor.foliageColor));
		newLeaves.setBurning();
		newLeaves.setTranslucent();
		newLeaves.setNoPushMobility();
		newLeaves.setAdventureModeExempt();
	}
	
	static public TutorialMaterial newLeaves;
	
	protected Boolean isTranslucent;
	
	public TutorialMaterial(MapColor mapColor)
	{
		super(mapColor);
	}

    public boolean isOpaque()
    {
        return this.isTranslucent ? false : this.blocksMovement();
    }
    
    protected TutorialMaterial setTranslucent()
    {
        this.isTranslucent = true;
        return this;
    }

}
